package com.xiaoq.shop.dto;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;
import java.util.List;

/**
 * @author xinpeng created on 16/9/29-上午9:58.
 */


public class ReviewDTO implements Serializable{

    private String reviewerId; //评论者id

    private String reviewerName; //评论者名称

    private String reviewerDisplayImgUrl; //评论者头像url

    private int reviewerRank;  //评论者等级头衔,例如显示钻石头像,皇冠头像等;// TODO: 需要定义枚举值

    private int score; //评星

    private String commentText; //评论文本

    private List<String> productImgUrls; //晒单图片

    private String spuName; //商品SPU名称

    private String specificationName; //主规格,从订单中提取

    private Long purchasingDate; //购买日期,从订单中提取

    public String getReviewerId() {
        return reviewerId;
    }

    public void setReviewerId(String reviewerId) {
        this.reviewerId = reviewerId;
    }

    public String getReviewerName() {
        return reviewerName;
    }

    public void setReviewerName(String reviewerName) {
        this.reviewerName = reviewerName;
    }

    public String getReviewerDisplayImgUrl() {
        return reviewerDisplayImgUrl;
    }

    public void setReviewerDisplayImgUrl(String reviewerDisplayImgUrl) {
        this.reviewerDisplayImgUrl = reviewerDisplayImgUrl;
    }

    public int getReviewerRank() {
        return reviewerRank;
    }

    public void setReviewerRank(int reviewerRank) {
        this.reviewerRank = reviewerRank;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getCommentText() {
        return commentText;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText;
    }

    public List<String> getProductImgUrls() {
        return productImgUrls;
    }

    public void setProductImgUrls(List<String> productImgUrls) {
        this.productImgUrls = productImgUrls;
    }

    public String getSpuName() {
        return spuName;
    }

    public void setSpuName(String spuName) {
        this.spuName = spuName;
    }

    public String getSpecificationName() {
        return specificationName;
    }

    public void setSpecificationName(String specificationName) {
        this.specificationName = specificationName;
    }

    public Long getPurchasingDate() {
        return purchasingDate;
    }

    public void setPurchasingDate(Long purchasingDate) {
        this.purchasingDate = purchasingDate;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
